package com.ellwood.common.core.exception;

import com.ellwood.common.core.utils.EllStrUtil;

import java.io.Serial;

/**
 * @ProjectName: Ellwood-framework-boot
 * @PackageName: com.ellwood.common.core.exception
 * @ClassName: EllUtilException
 * @Description: // 工具类异常
 * @Author: Ellwood
 * @CreateDate: 2024/7/15 - 上午11:45
 * @Version: V1.0.0
 */
public class EllUtilException extends RuntimeException {

    @Serial
    private static final long serialVersionUID = 1L;

    public EllUtilException(Throwable e) {
        super(e.getMessage(), e);
    }

    public EllUtilException(String message) {
        super(message);
    }

    public EllUtilException(String message, Object... params) {
        super(EllStrUtil.format(message, params));
    }

    public EllUtilException(Throwable throwable, String message) {
        super(message, throwable);
    }


}
